package org.GenusApis.lib;

import org.json.JSONObject;

public class HyvesApiException extends Exception {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private int code;
    private JSONObject response;

    public HyvesApiException(String message, int code, JSONObject response) {
        super(message);
        this.code = code;
        this.response = response;
    }
    
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public JSONObject getResponse() {
        return response;
    }

    public void setResponse(JSONObject response) {
        this.response = response;
    }
}
